home *** CD-ROM | disk | FTP | other *** search
/ Guidemac 1 / Guidemac.iso / Logiciels divers T1 / Utilitaires / CalConvert 1.05 / CalConvert 1.05 docs < prev   
Text File  |  1993-05-06  |  4KB  |  98 lines

  1. Alessandro Levi Montalcini
  2. C.so Re Umberto 10
  3. 10121 Torino
  4. Italy
  5.  
  6. CalConvert 1.05 documentation
  7. May 1993
  8.  
  9.  
  10. •• WARNING:
  11. •• CALCONVERT REQUIRES SYSTEM 7
  12.  
  13.  
  14. • SHAREWARE - $5 - CASH ONLY
  15. ◊  This program is distributed as Shareware: if you like it or use it please honor the shareware system by sending $5 to the author at the address above. Since collecting international cheques is very expensive, please send cash only. If you MUST send a cheque, keep in mind that the banks will gobble up more than half of it.
  16. ◊  NOTE: Getting some (usually very few) bucks is what you write shareware for, but getting a note, a postcard or anything else is a lot better than getting nothing. I'd like to know how far this program has gone, so remember that you can do something nice even if you don't have a couple of $$$ to spare.
  17.  
  18. • GENERAL INFO
  19. ◊  CalConvert (formerly QuickConvert) is a small shareware utility that does integer arithmetic calculations and converts integer values to different bases (decimal, hexadecimal, binary, octal or any custom base between 2 and 32) or to an OSType (a sequence of four ASCII characters). The conversion may be signed or unsigned (you can always enter a signed value, it will be converted to unsigned if needed); the result may be interpreted either as a word (2 bytes) or as a long word (4 bytes). The Return and Enter keys start the conversion; Tab, shift-Tab and the four arrow keys have their usual meaning.
  20. ◊  Warning: QuickConvert requires System 7.
  21.  
  22. • CONFIGURATION
  23. ◊  Choosing the "Fields" item from the "Options" menu will bring up a configuration dialog that can be used to fully customize CalConvert. CalConvert can show up to 8 fields; each field contains either a mathematical expression, a sequence of 1 to 4 characters (OSType) or an integer number in any base from 2 to 32.
  24.  
  25. • THE ARITHMETIC CALCULATOR
  26. ◊  You may enter numerical expressions in fields labeled "Math" (things like "(12*(128-$20))<<2+2^8"); the result will be shown in all the other fields of the window when you press <return>. If the expression can't be parsed correctly, you will hear a beep and the other fields will change to zero. The next paragraphs will explain the syntax and operators you may use in your numerical expressions.
  27.  
  28. • SYNTAX NOTES FOR THE MATH FIELD
  29.  
  30.   xxx (x=0->9) is a number
  31.   $xxx (x=0->F) is an hexadecimal number
  32.   -xxx, -$xxx, $-xxx are negative numbers
  33.   all numbers are interpreted as 32-bit signed integers
  34.   '(' and ')' can be used and nested
  35.   spaces allowed between numbers and operators
  36.   no spaces allowed inside numbers or operators
  37.  
  38. • ORDER OF OPERATORS
  39.  
  40.   operators in the upper lines are calculated first;
  41.   operators in the same line are calculated sequentially:
  42.     
  43.   ^ **
  44.   * / : % << >>
  45.   & AND | OR \ XOR
  46.   + -
  47.   = == != <> < > <= >=
  48.  
  49. • ARITHMETIC OPERATORS
  50.  
  51.   '+'  add
  52.   '-'  subtract
  53.   '*'  multiply
  54.   '/'  divide
  55.   ':'  divide
  56.   '%'  remainder
  57.   '^'  power
  58.   '**' power
  59.  
  60. • LOGICAL OPERATORS (return 1 if true, 0 if false)
  61.  
  62.   '='  equal to
  63.   '==' equal to
  64.   '!=' not equal to
  65.   '<>' not equal to
  66.   '<'  less than
  67.   '>'  greater than
  68.   '<=' less or equal
  69.   '>=' greater or equal
  70.  
  71. • BITWISE OPERATORS
  72.  
  73.   '<<'  bit shift left
  74.   '>>'  bit shift right
  75.   '&'   bit and
  76.   'AND' bit and
  77.   'and' bit and
  78.   '|'   bit or
  79.   'OR'  bit or
  80.   'or'  bit or
  81.   '\'   exclusive or
  82.   'XOR' exclusive or
  83.   'xor' exclusive or
  84.  
  85. • VERSION HISTORY
  86. ◊  1.05 - Fixed an incoherent behaviour of the "Fields" dialog
  87. ◊  1.04 - Changed name, dialogs, info and docs to CalConvert
  88. ◊  1.03 - First shareware version with the arithmetic parser
  89. ◊  1.02 - First public release in send-me-a-postcard-ware
  90. ◊  1.01 - Menus added, but still looks like a quick hack
  91. ◊  1.00 - Written for my personal use only, sports a very poor interface
  92.  
  93. •  HAVE FUN! And don't forget to $$$ SEND YOUR CONTRIBUTION $$$ so that more cool utilities will see the light in the near future, at the low-low-low costs of shareware.
  94.  
  95.  
  96.                      Best Regards,
  97.                                             Alessandro Levi Montalcini
  98.